package com.leoman.post.entity;

import com.leoman.entity.BaseEntity;
import com.leoman.post.entity.vo.PostImageVo;

import javax.persistence.*;
import java.util.List;

/**
 * Created by Administrator on 2016/6/14 0014.
 */
@Table(name = "t_post_zb_info")
@Entity
public class ZbPostInfo extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "post_id")
    private PostBase postBase;

    @Column(name = "avater")
    private String avater;

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "content")
    private String content;

    @Column(name = "url")
    private String url;

    @Column(name = "length")
    private Integer length;

    @Transient
    private List<PostImage> imageList;

    @Transient
    private String showTime;

    public PostBase getPostBase() {
        return postBase;
    }

    public void setPostBase(PostBase postBase) {
        this.postBase = postBase;
    }

    public String getAvater() {
        return avater;
    }

    public void setAvater(String avater) {
        this.avater = avater;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public List<PostImage> getImageList() {
        return imageList;
    }

    public void setImageList(List<PostImage> imageList) {
        this.imageList = imageList;
    }

    public String getShowTime() {
        return showTime;
    }

    public void setShowTime(String showTime) {
        this.showTime = showTime;
    }
}
